<?php
namespace app\admin\validate;

use think\Validate;

class Member extends Validate {
    protected $rule = [
        'mobile'         => 'require|number|unique:member'
    ];

    protected $message = [
        'mobile.require'         => '请输入手机号',
        'mobile.unique'          => '手机号已存在',
        'mobile.number'          => '手机号格式错误'
    ];
}